﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using entities;
using logic;

namespace weapon
{
    public class HeroPrinter
    {
        public static void Print(Hero hero)
        {
            
            //TODO: Вывест на экран оружие и общий урон героя
            Console.WriteLine("Hero:");
            Console.WriteLine("name = " + hero.Name);
            HeroLogic logic = new HeroLogic();
            int totalDamage = logic.GetTotalDamage(hero);
            Console.WriteLine("damage = " + totalDamage);

            Console.WriteLine();
            Console.WriteLine("Weapons:");

            Bag bag = hero.Bag;
            List<AbstractWeapon> weapons = bag.Weapons;
            for (int i = 0; i < weapons.Count; i++)
            {
                AbstractWeapon weapon = weapons[i];
                Console.WriteLine("Name = " + weapon.Name);
            }

            
        }
    }
}
